package com.macro.cloud;

import com.macro.cloud.config.Oauth2Config;
import com.macro.cloud.service.Oauth2ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;


@ComponentScan("com.macro.cloud")
public class Oauth2AutoConfiguration {

    @Autowired
    private Oauth2Config oauth2Config;

    @Bean
    public Oauth2ClientService oauth2ClientService() {
        return new Oauth2ClientService(oauth2Config);
    }

}
